class CreateMessageFolders < ActiveRecord::Migration
  def self.up
    create_table :message_folders do |t|
      t.string :name
      t.references :user
    end

    create_table :message_folders_messages, :id => false do |t|
      t.integer :message_folder_id
      t.integer :message_id
    end
  end

  def self.down
    drop_table :message_folders_messages
    drop_table :message_folders
  end
end
